#ifndef __GWSERVER_REGISTER_SUCCESSRECIEVER_H__
#define __GWSERVER_REGISTER_SUCCESSRECIEVER_H__

#include "gwmessagetab.hpp"
#include "IMessageOperator.h"
#include "protonet.hpp"
#include "../GatewayServerTab.h"

/**
*@file       GWServer_Register_SuccessReciever.h
*@brief      process message GWServer_Register_Success
*
*@author     graywind
*@version    1.0.0.0
*@data       2012/3/26
*/

///process message
class OnGWServer_Register_Success
{
public:
    ///@brief    process message
    ///param[in] op            operator type
    ///param[in] session_id    identifier of session
    ///param[in] pMsgBuffer    message buffer
    ///param[in] msg_bytes     byte length of message buffer
    ///retval    void
    static void OnMapping(IMessageOperator* op, int session_id, void* pMsgBuffer, unsigned long msg_bytes)
    {
        //TODO
        std::cout<<"Register To Gateway Success!"<<std::endl;
    }
};

///[message group]  [message type]  [function table] [handler]
RegisterMessageTab(GatewayServerTypes, GWServer_Register_Success, GatewayServerTab, OnGWServer_Register_Success);
#endif
